import 'package:blog_chyk_intl/app/theme/theme_controller.dart';
import 'package:get/get.dart';

/// 全局一行切换主题
void toggleThemeGlobal() {
  // 只要 main 里提前 Get.put(ThemeController()) 即可
  final themeCtrl = Get.find<ThemeController>(tag: ''); // 无 tag 默认找
  themeCtrl.toggleTheme();
}

/// 当前是否暗色
bool get isDarkMode => Get.find<ThemeController>().isDark.value;
